<%@ page contentType="text/html;charset=UTF-8" %>
<%@ page import="org.springside.core.Constants"%>
<%@ include file="/common/taglibs.jsp" %>
<fmt:message key="message_portal_label1" var="message_portal_label1"/>
<fmt:message key="message_portal_label2" var="message_portal_label2"/>
<fmt:message key="message_portal_label3" var="message_portal_label3"/>
<fmt:message key="message_portal_label4" var="message_portal_label4"/>
<fmt:message key="message_portal_label5" var="message_portal_label5"/>
<fmt:message key="message_portal_label6" var="message_portal_label6"/>
<fmt:message key="message_portal_label7" var="message_portal_label7"/>
<fmt:message key="messages_outbox_label21" var="messages_outbox_label21"/>
<fmt:message key="messages_outbox_label22" var="messages_outbox_label22"/>

<ff:boxportlet header="${message_portal_label6}">	
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="padding-left:5px">
       <tr> 
    <td width="50%" align="center">
    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl_left_ico">
        <tr> 
          <td> 
           <a class="link_portlet" href="#"
           		onClick='mainJump("/modules/message/messages.do?ec_s_createdate=desc&type=1","<%=Constants.USER_THEME_FRAME %>")' 
            	> <b>${messages_outbox_label22}</b></a> 
          </td>
        </tr>
        <c:forEach items="${notifyMessage}" var="messages" > 
        <tr> 
         <td>
					<c:if test="${messages.isread != 0}">
		        	<A class="link_portlet" href="<c:url value="/modules/message/messages.do?method=show&id=${messages.id}"/>"
		        		title="${messages.title}">
						<c:if test="${fn:length(messages.title)> param.y}">
		                	${fn:substring(messages.title,0, param.y)}...
		                </c:if>
		                <c:if test="${fn:length(messages.title)<= param.y }">
		                	${messages.title}
		                </c:if> 
		        	</a>
					</c:if>
					<c:if test="${messages.isread == 0}">
					<A class="link_portlet" href="<c:url value="/modules/message/messages.do?method=show&id=${messages.id}"/>"
		        		title="${messages.title}">
						<B>
						<c:if test="${fn:length(messages.title)> param.y}">
		                	${fn:substring(messages.title,0,16)}...
		                </c:if>
		                <c:if test="${fn:length(messages.title)<= param.y}">
		                	${messages.title}
		                </c:if> 
						</B>
		        	</a>
					<img src="<c:url value="../../themes/${sessionScope.loginUser.theme}/home/images/new.gif"/>">
					</c:if>
                </td>
        </tr>
        </c:forEach>
         <c:if test="${fn:length(notifyMessage) < 1}">           
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>
            <c:if test="${fn:length(notifyMessage) < 2}">          
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>
            <c:if test="${fn:length(notifyMessage) < 3}">           
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>
            <c:if test="${fn:length(notifyMessage) < 4}">           
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>

		</table></td>
    <td width="50%" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl_left_ico">
        <tr> 
          <td> <a class="link_portlet" href="#"
            	onClick='mainJump("/modules/message/messages.do?ec_s_createdate=desc&type=0","<%=Constants.USER_THEME_FRAME %>")' 
            	title="${messages_outbox_label21} "><b>${messages_outbox_label21}</b> 
          </td>
        </tr>
        <c:forEach items="${communicateMessage}" var="messages" > 
        <tr> 
          <td>
					<c:if test="${messages.isread != 0}">
		        	<A class="link_portlet" href="<c:url value="/modules/message/messages.do?method=show&id=${messages.id}"/>"
		        		title="${messages.title}">
						<c:if test="${fn:length(messages.title)>16}">
		                	${fn:substring(messages.title,0,16)}...
		                </c:if>
		                <c:if test="${fn:length(messages.title)<=16}">
		                	${messages.title}
		                </c:if> 
		        	</a>
					</c:if>
					<c:if test="${messages.isread == 0}">
					<A class="link_portlet" href="<c:url value="/modules/message/messages.do?method=show&id=${messages.id}"/>"
		        		title="${messages.title}">
						<B>
						<c:if test="${fn:length(messages.title)>16}">
		                	${fn:substring(messages.title,0,16)}...
		                </c:if>
		                <c:if test="${fn:length(messages.title)<=16}">
		                	${messages.title}
		                </c:if> 
						</B>
		        	</a>
					<img src="<c:url value="../../themes/${sessionScope.loginUser.theme}/home/images/new.gif"/>">
					</c:if>
                </td>
        </tr>
        </c:forEach> 
             <c:if test="${fn:length(communicateMessage) < 1}">           
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>
            <c:if test="${fn:length(communicateMessage) < 2}">          
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>
            <c:if test="${fn:length(communicateMessage) < 3}">           
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>
            <c:if test="${fn:length(communicateMessage) < 4}">           
              <tr>
                <td>&nbsp;</td>
              </tr>
            </c:if>

		</table></td>
  </tr>
  <tr>
  	<td colspan="2">
  		<table width="100%" height="17">
			        <tr>
			          <td>&nbsp;</td>
			          <td width="30">
			          </td>
			        </tr>
			     </table>
  	</td>
  </tr>
</table>
</ff:boxportlet> 

